﻿@{
    object data = null;
    ViewData.TryGetValue("data", out data);
    var paras = ViewData.ModelMetadata.UIParameters();
    object url = null;
    if (paras != null)
    {
        paras.TryGetValue("url", out url);
        if (data != null && url != null && url.ToString().IndexOf("{") >= 0)
        {
            url = data.FormatWithProperies(url.ToString());
        }
    }
}
<a href="@url" class="dialog">@this.Model</a>